package com.gmail.at.vssabinin.train_transport_system_part1;

import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

/**
 * 
 * Class that associates received data from client user with the server on which 
 * it was received and socket channel of the client's connection.
 *
 */
public class ReceivedData {
	public Server server;
	public SocketChannel socket;
	public ByteBuffer data;
	
	/**
	 * Constructor of {@link ReceivedData} class
	 * 
	 * @param server - Server instance which received data
	 * @param socket - socket channel of the client
	 * @param data - data which client user sent to the Server
	 */
	public ReceivedData(Server server, SocketChannel socket, ByteBuffer data) {
		this.server = server;
		this.socket = socket;
		this.data = data;
	}
	
}